Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-3882

MEDIUM 5.9PoCEPSS 66%

Sensitive Cookie in HTTPS Session Without 'Secure' Attribute in ledgersmb/ledgersmb

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running ledgersmb/ledgersmb >= 1.8.0, < unspecified; >= unspecified, <= 1.8.21

Vulnerability facts

Affected
ledgersmb/ledgersmb >= 1.8.0, < unspecified; >= unspecified, <= 1.8.21
Fixed in
No fix listed yet
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, no login needed
CVSS
5.9 (v3.0, CNA)CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: Low
  • Availability impact: None
EPSS
1.13% chance of exploitation in 30 days (percentile 66, 2026-11-26)
CWE
CWE-614
Published
Modified

Description

LedgerSMB does not set the 'Secure' attribute on the session authorization cookie when the client uses HTTPS and the LedgerSMB server is behind a reverse proxy. By tricking a user to use an unencrypted connection (HTTP), an attacker may be able to obtain the authentication data by capturing network traffic. LedgerSMB 1.8 and newer switched from Basic authentication to using cookie authentication with encrypted cookies. Although an attacker can't access the information inside the cookie, nor the password of the user, possession of the cookie is enough to access the application as the user from which the cookie has been obtained. In order for the attacker to obtain the cookie, first of all the server must be configured to respond to unencrypted requests, the attacker must be suitably positioned to eavesdrop on the network traffic between the client and the server *and* the user must be tricked into using unencrypted HTTP traffic. Proper audit control and separation of duties limit Integrity impact of the attack vector. Users of LedgerSMB 1.8 are urged to upgrade to known-fixed versions. Users of LedgerSMB 1.7 or 1.9 are unaffected by this vulnerability and don't need to take action. As a workaround, users may configure their Apache or Nginx reverse proxy to add the Secure attribute at the network boundary instead of relying on LedgerSMB. For Apache, please refer to the 'Header always edit' configuration command in the mod_headers module. For Nginx, please refer to the 'proxy_cookie_flags' configuration command.

Affected and fixed versions

Package / productAffectedFixedSource
ledgersmb/ledgersmb>= 1.8.0, < unspecified; >= unspecified, <= 1.8.21—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-3882. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-3882.md
Affected: ledgersmb/ledgersmb >= 1.8.0, < unspecified; >= unspecified, <= 1.8.21
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for ledgersmb/ledgersmb: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-3882 being exploited?

There is no confirmed exploitation: CVE-2021-3882 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.13% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-3882?

Medium: CVSS 5.9 (v3.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2021-3882?

ledgersmb/ledgersmb >= 1.8.0, < unspecified; >= unspecified, <= 1.8.21.

Is there a fix for CVE-2021-3882?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2021-3882?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors