Critical Gitea Docker Bug Under Active Exploitation Exposes Repositories and Secrets


Critical Gitea Docker Bug Under Active Exploitation Exposes Repositories and Secrets

Pierluigi Paganini
July 07, 2026

Attackers are exploiting a critical Gitea flaw (CVE-2026-20896) that bypasses authentication with a single HTTP header, exposing repositories and sensitive data.

Sysdig researchers warn that attackers are actively exploiting a critical authentication bypass flaw, tracked as CVE-2026-20896 (CVSS score of 9.8), which affects Gitea official Docker images before version 1.26.3.

“CVE-2026-20896 exploited 13 days after disclosure. One HTTP header. Access on any internet-facing Gitea.” Sysdig Sr. Director of Threat Research Michael Clark wrote. “No password. No token. One header. Sysdig sensors caught the first in-the-wild hit 13 days after the advisory, a VPN-exit scanner that grabbed access.”

Attackers can bypass authentication and gain access to internet-facing Gitea instances, including repositories and sensitive secrets, by sending a single crafted HTTP header with a valid username. The flaw is caused by insecure default settings that accept connections from any IP address instead of restricting access to trusted reverse proxies.

“Gitea’s official Docker image (up to and including 1.26.2) ships REVERSE_PROXY_TRUSTED_PROXIES = * in its default config. If you turn on reverse-proxy login, that wildcard means every source IP is treated as a trusted proxy, so anyone who can reach the port can send an X-WEBAUTH-USER header and get logged in as whoever they want.” reported security researcher Ali Mustafa, who discovered the issue. “No password, no token.”

Gitea can use a reverse proxy to authenticate users by trusting the X-WEBAUTH-USER HTTP header, but only if the request comes from a trusted proxy. Normally, this is protected by an IP allowlist that, by default, trusts only the local machine. However, the official Gitea Docker images are misconfigured: they trust requests from any IP address. As a result, if reverse-proxy authentication is enabled, anyone who can reach the Gitea server can send a crafted HTTP header, impersonate any user, and even gain administrator access. The flaw affects only the official Docker images, not standard or self-built Gitea installations that use the secure default configuration.

“Any process that can reach the Gitea container’s HTTP port directly — not through the intended authenticating proxy — can impersonate any user whose login name is known or guessable.” the researcher said. “Admin accounts are the obvious targets,”

Gitea versions 1.26.3 and 1.26.4 make reverse-proxy authentication an opt-in feature, fixing the flaw.

According to Sysdig, a Shodan query identified around 6,200 internet-exposed Gitea instances, although the number of vulnerable systems remains unknown. Users should update immediately to protect their code and secrets.

“User access on a Gitea box isn’t “a web panel,” it’s your source code.” Clark concluded. “A Gitea user can read and write their repositories, private ones included: the code they ship, the secrets developers committed by accident (API keys, DB credentials, deploy tokens), their CI/CD config, and deploy keys.”

Follow me on Twitter: @securityaffairs and Facebook and Mastodon

Pierluigi Paganini

(SecurityAffairs – hacking, CVE-2026-20896)







Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Reality makes for some stellar storytelling. If you’re looking to stream movies that are based on true events, Netflix has an extensive collection of biographical-style dramas that go beyond your typical selection of documentaries.

From historical tragedies to stories of resilience and ambition, these films bring some notable real-life events to your screen. Here are five Netflix Original movies that feature strong performances, storytelling, and visuals that you need to add to your watch list for the week.

The Two Popes

The path ahead is forged by this pair

A pope whispers into a cardinal's ear in The Two Popes. Credit: Netflix

The Two Popes is an incredible film that is based on one of the most memorable recent transitions in modern Catholic Church history, led by strong performances from Anthony Hopkins and Jonathan Pryce.

Inspired by real conversations and events surrounding Pope Benedict XVI and the future Pope Francis, The Two Popes follows Cardinal Jorge Mario Bergoglio as he travels to Rome and plans to resign from the Church. Instead, he finds himself pulled into a series of personal and philosophical conversations with Pope Benedict, who is struggling with his doubts about leadership and the future of Catholicism. The character focus of the movie keeps you hooked despite the mellow pace, with Hopkins’ and Pryce’s chemistry making for an impeccable watch.

The Two Popes received nominations at the Academy Awards, Golden Globes, and British Academy Film Awards.

Society of the Snow

Hope is within the group

One of Netflix’s most notable, foreign-language survival thrillers is Society of the Snow. Based on the real 1972 Andes plane crash, the Spanish movie follows a Uruguayan rugby team whose flight crashes deep in the snow-covered mountains, leaving the survivors stranded for weeks in brutal freezing conditions. As supplies start to run out and hope fades, the group is forced to make some unimaginable decisions just to survive.

The thriller was shot mainly in Sierra Nevada, Spain, and features some phenomenal filmmaking. Although survival is a core element of the movie, it also highlights the grit and humanity of the party amid a disastrous situation, alongside the grim reality. Society of the Snow received two Academy Award nominations for Best International Feature Film and Best Makeup and Hairstyling.

The Good Nurse

The case of a prolific, unexpected killer

Two nurses sit next to each other in The Good Nurse Credit: JoJo Whilden/Netflix

The Good Nurse was haunting to watch at night, but it’s a thriller that has stayed with me for years. The crime drama tells the true story of Charles Cullen, a nurse and serial killer who was responsible for the deaths of dozens of patients across multiple hospitals in the United States. The film is based on the 2013 true-crime book of the same name by Charles Graeber.

What’s fascinating about the movie is that, instead of giving us Cullen’s perspective, the story unfolds from the POV of Amy Loughren, a single mother and ICU nurse who was key in Cullen’s confession and eventual conviction. As his new co-worker, her suspicions build over the course of the movie after she starts noticing something strange about his patients. The Good Nurse also does a good job of touching on another vital aspect of the case, the hospital’s negligence.

Jessica Chastain and Eddie Redmayne drive the movie with incredibly controlled performances. To know more about the real case, you can also check out the Netflix documentary Capturing the Killer Nurse.​​​​​​​

Mudbound

Life after war is never easy

A woman sits down in Mudbound. Credit: Steve Dietl/Netflix

The (mandatory) war film addition to this list is Mudbound, a Netflix exclusive that stands out for its incredible character-focused storytelling. The story is set in rural Mississippi after World War II and follows two veterans, one Black and one white, whose lives become intertwined while working on the same farmland. The soldiers and their families deal with the PTSD of war in their own ways. Mudbound explores themes like racism, trauma, class divides, and poverty through its gripping plot.

Directed by Dee Rees, the film received four Academy Award nominations, including Best Supporting Actress, Best Original Song, and Best Adapted Screenplay. It became the first Netflix movie ever nominated for Best Cinematography — Rachel Morrison became the first woman nominated in the category. It also earned two Golden Globe nominations.​​​​​​​

Nyad

An impossible feat is nothing for this resilient athlete

A woman smiles in the water in Nyad. Credit: Liz Parkinson/Netflix

If you’re in the mood for a sports thriller and a true story, don’t skip NYAD. This biographical drama follows marathon swimmer Diana Nyad and her attempt to complete the seemingly impossible 110-mile swim from Cuba to Florida without a shark cage. The film takes place years after Nyad initially gave up on the challenge.

The athlete decides in her sixties that she wants a final shot at achieving the record-breaking swim and sets her mind on the incredible goal. Alongside her best friend and coach, Bonnie Stoll, Nyad begins preparing for the physically exhausting journey while facing dangerous weather, exhaustion, and many failed attempts. NYAD is led by Annette Bening and Jodie Foster, with both actors receiving nominations for Best Actress and Supporting Actress, respectively, at the 96th Academy Awards and the 81st Golden Globe Awards.


More Netflix options

Want to explore more biographies and titles inspired by true events? You can explore Netflix’s list of secret codes to filter out and find titles according to genres, tropes, and languages. Netflix’s release schedule for the summer also includes some exciting titles, so keep an eye out for that.

Subscription with ads

Yes, $8/month

Simultaneous streams

Two or four

Stream licensed and original programming with a monthly Netflix subscription.




Source link