CVE-2022-25299: Arbitrary File Write

Published Feb 18, 2022
·
Updated

This affects the package cesanta/mongoose before 7.6. The unsafe handling of file names during upload using mghttpupload() method may enable attackers to write files to arbitrary locations outside the designated target folder.

Affected Software

1 affected component
Cesanta Mongoose<7.6

Event History

Feb 18, 2022
CVE Published
via MITRE·12:55 PM
Data Sourced
via MITRE·12:55 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-25299?

CVE-2022-25299 is a vulnerability that affects the package cesanta/mongoose before version 7.6.

2

What is the severity of CVE-2022-25299?

The severity of CVE-2022-25299 is critical with a severity value of 7.5.

3

How does CVE-2022-25299 affect Cesanta Mongoose?

CVE-2022-25299 in Cesanta Mongoose allows unsafe handling of file names during upload, enabling attackers to write files to arbitrary locations outside the designated target folder.

4

How can I fix CVE-2022-25299?

To fix CVE-2022-25299, it is recommended to update the cesanta/mongoose package to version 7.6 or above.

5

Is there any reference for CVE-2022-25299?

Yes, you can find more information about CVE-2022-25299 at the following references: [GitHub](https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945) and [Snyk](https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203