Skip to content

Libsoup: libsoup: heap buffer overflow via uninitialized length in data-uri base64 decoding #568624

Closed

Description

@nixpkgs-security-tracker

Nixpkgs security tracker issue

CVE-2026-102555 (NVD)

8.2 HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
  • CVSS version (CVSS): 3.1
  • Attack Vector (AV): Network (N)
  • Attack Complexity (AC): Low (L)
  • Privileges Required (PR): None (N)
  • User Interaction (UI): None (N)
  • Scope (S): Unchanged (U)
  • Confidentiality (C): Low (L)
  • Integrity (I): None (N)
  • Availability (A): High (H)
  • Modified Attack Vector (MAV): Network (N)
  • Modified Attack Complexity (MAC): Low (L)
  • Modified Privileges Required (MPR): None (N)
  • Modified User Interaction (MUI): None (N)
  • Modified Confidentiality (MC): Low (L)
  • Modified Scope (MS): Unchanged (U)
  • Modified Integrity (MI): None (N)
  • Modified Availability (MA): High (H)
Libsoup: libsoup: heap buffer overflow via uninitialized length in data-uri base64 decoding A flaw was found in libsoup. The soup_uri_decode_data_uri() function incorrectly treated base64 data-URI payloads as NUL-terminated strings when calling g_base64_decode_inplace(). If the percent-decoded payload contained embedded NUL bytes, the decoded length could remain uninitialized and be used as the size of the returned GBytes. This can lead to an out-of-bounds read or application crash when processing a crafted data URI.

References

Additional comment

Patch: https://gitlab.gnome.org/GNOME/libsoup/-/commit/e4f032268fa18f691a6c34d6adcb5b666f3e3f77

Affected packages

Affected package maintainers

@thunze, @theCapypara, @bobby285271, @jtojnar, @nekowinston

Next steps

Activity

  1. added
    1.severity: security
    on Sep 30, 2026
  2. added a commit that references this issue on Oct 3, 2026
  3. linked a pull request that will close this issue[26.05] libsoup_3: 3.6.6 -> 3.8.0 #569615on Oct 3, 2026
  4. added a commit that references this issue on Oct 4, 2026
  5. added a commit that references this issue on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.severity: security

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions