CVE-2022-25299

NameCVE-2022-25299
DescriptionThis affects the package cesanta/mongoose before 7.6. The unsafe handling of file names during upload using mg_http_upload() method may enable attackers to write files to arbitrary locations outside the designated target folder.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
phantomjs (PTS)buster, stretch2.1.1+dfsg-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
phantomjssourcestretch(not affected)
phantomjssourcebuster(not affected)
phantomjssource(unstable)(unfixed)

Notes

[buster] - phantomjs <not-affected> (Vulnerable code introduced later)
[stretch] - phantomjs <not-affected> (Vulnerable code introduced later)
https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945
https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180

Search for package or bug name: Reporting problems