CVE-2021-3776
PHP vulnerability analysis and mitigation

Overview

A Cross-Site Request Forgery (CSRF) vulnerability was identified in showdoc, tracked as CVE-2021-3776. The vulnerability was discovered and reported on September 6, 2021 (CVE Mitre).

Technical details

The vulnerability affects the cookie handling mechanism in showdoc's user controller. The issue was specifically related to insufficient CSRF protection in the cookie implementation, as evidenced by the subsequent fix that implemented strict cookie controls and SameSite attributes for PHP versions 7.3.0 and above (GitHub Commit).

Impact

The CSRF vulnerability could potentially allow attackers to perform unauthorized actions on behalf of authenticated users, compromising the security of the application (CVE Mitre).

Mitigation and workarounds

The vulnerability was addressed through a patch that implemented strict cookie controls. For PHP versions 7.3.0 and above, the fix includes setting the SameSite attribute to 'Strict' and adding proper httponly flags. For older PHP versions, the fix implements basic cookie security controls with httponly flags (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-61676MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2025-61674MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2026-21896MEDIUM5.8
  • PHPPHP
  • getkirby/cms
NoYesJan 08, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management