Security mailing lists by PureSourceCode

CVE-2022-40151

HIGH 7.5CVSS 3.1

XStream can cause a Denial of Service by injecting deeply nested objects raising a stack overflow

Those using Xstream to seralize XML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.

Published
16 Sep 2022
Last modified
17 Jun 2026
Assigned by
cve-coordination@google.com
NVD status
Analyzed
Weakness
CWE-121CWE-502CWE-787
Also known as
GHSA-f8cc-g7j8-xxpm
Sources
NVDJSONOSV GHSA-f8cc-g7j8-xxpmJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD cve-coordination@google.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD xstream xstream
cpe:2.3:a:xstream:xstream:*:*:*:*:*:*:*:*
< 1.4.20 1.4.20
OSV Maven com.thoughtworks.xstream:xstream < 1.4.20 1.4.20

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 16 Sep 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 30 Dec 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.