New MCP server — Bring vulnerability intelligence into your AI
Back to feed

CVE-2026-40477

NVDCIRCLENISA

EUVD-2026-23571 · Published Apr 15, 2026

Improper restriction of the scope of accessible objects in Thymeleaf expressions

Impact

A security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf up to and including 3.1.3.RELEASE. Although the library provides mechanisms to prevent expression injection, it fails to properly restrict the scope of accessible objects, allowing specific potentially sensitive objects to be reached from within a template. If an application developer passes unvalidated user input directly to the template engine, an unauthenticated remote attacker can bypass the library's protections to achieve Server-Side Template Injection (SSTI).

Patches

This has been fixed in Thymeleaf 3.1.4.RELEASE.

Workarounds

No workaround is available beyond ensuring applications do not pass unvalidated user input directly to the template engine. Upgrading to 3.1.4.RELEASE is strongly recommended in any case.

Credits

Thanks to Thomas Reburn (Praetorian) for responsible disclosure.

Technologies

Thymeleaf Thymeleaf

Weaknesses

CWE-917CWE-1336

CVSS scores

  • v3.19.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

MITRE ATT&CK

Inferred

Where this vulnerability fits in an attack

Initial Access

References

Potentially impacted assets

See if this affects your attack surface

Latest trending attack

High2d ago

OpenSSH (sshd on musl libc) - Password Authentication Bypass

OpenSSH is the standard suite of Secure Shell (SSH) tools providing encrypted remote login and file transfer. Its server daemon, sshd, is the primary remote access mechanism on Unix-like systems, including lightweight Linux distributions such as Alpine Linux that are built on the musl C library without PAM. CVE-2026-123158 Improper handling of password verification in sshd when built without PAM on Linux systems using musl libc. OpenSSH verifies passwords itself by calling crypt() and comparing the output to the stored password field; when the stored field is too short to contain a salt (for example *, which denotes key-only or locked accounts), sshd borrows a salt from another account on the system. Because musl's crypt() returns the string * on error — and it errors on any key longer than 256 bytes — the comparison succeeds for any submitted password between roughly 256 and 1024 characters. An unauthenticated attacker who can reach the SSH port can therefore log in to accounts whose shadow field is * (e.g. root on Alpine base images since about Alpine 3.16, key-only users, or directory-service users without a shadow entry), provided at least one local account has a real $5$ or $6$ hash and PasswordAuthentication yes is in effect. The flaw affects OpenSSH before 10.6p2 on Linux with musl and no PAM; Alpine Linux is the prominent example. The OpenSSH team considers the root cause to be outside sshd but shipped a workaround in Portable OpenSSH 10.6p2 (fix committed 4 November 2026). Alpine published fixed packages on 5 November 2026: 10.6_p2-r0 on edge, 10.3_p1-r2 on 3.24, 10.2_p1-r1 on 3.23, and 10.0_p1-r11 on 3.22, with backports down to 3.16; fixed images are built from point releases 3.21.10, 3.22.8, 3.23.8, and 3.24.4 or later. If patching is not immediately possible, disabling password authentication (PasswordAuthentication no) or enabling PAM closes the exposure. No exploitation in the wild had been reported as of 6 November 2026, and the CVE is not in CISA's KEV catalog, though public proof-of-concept material exists.

Take 15 minutes to discover our platform with our experts

Patrowl Intel platform screenshot