<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/luarocks-security-incident-september-2026-mpesiwvek" -->

---
title: LuaRocks Security Incident September 2026 | daily.dev
description: A remote code execution vulnerability in LuaRocks.org, the Lua package repository, was exploited between July 9 and August 20, 2026 before being reported...
canonical: https://daily.dev/posts/luarocks-security-incident-september-2026-mpesiwvek
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: LuaRocks Security Incident September 2026 | daily.dev
og:description: A remote code execution vulnerability in LuaRocks.org, the Lua package repository, was exploited between July 9 and August 20, 2026 before being reported...
og:url: https://daily.dev/posts/luarocks-security-incident-september-2026-mpesiwvek
og:image: https://api.daily.dev/og/posts/MPESiwvEK.png
og:image:alt: LuaRocks Security Incident September 2026
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# LuaRocks Security Incident September 2026

**[Lobsters](https://daily.dev/sources/lobsters)** · 7 min read · 0 upvotes · 0 comments

## Summary

A remote code execution vulnerability in LuaRocks.org, the Lua package repository, was exploited between July 9 and August 20, 2026 before being reported through CISA and fixed on September 26. The flaw was in how uploaded rockspecs were parsed: loadstring accepted precompiled bytecode instead of only Lua source, and on LuaJIT/Lua 5.1 that bytecode is unverified and can escape the sandbox to run arbitrary code on the server. Attackers ran shell commands, published three malicious packages, and ran hundreds of automated exploit attempts via the upload API. All credentials, API keys, sessions, 2FA secrets, and GitHub tokens tied to the server were revoked, the site moved to a new server, and a git mirror history was used to confirm no existing packages were tampered with. Users are urged to rotate credentials, re-enable 2FA, and upgrade to LuaRocks 3.12 or newer.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://luarocks.org/security-incident-september-2026>

## Questions this post answers

### What caused the LuaRocks.org remote code execution vulnerability?

The rockspec parser loaded uploaded files with loadstring without restricting it to text mode, so on LuaJIT or Lua 5.1 an uploaded file could contain precompiled bytecode instead of Lua source. LuaJIT does not verify bytecode, so a crafted file could read and write arbitrary memory, escaping the sandbox and running code inside the web server. The fix passes the text-only mode flag to loadstring and rejects any file starting with byte 27.

_Teams running Lua or LuaJIT services can track vulnerability writeups like this one on daily.dev to harden their own sandboxing._

### What should I do if I have a LuaRocks.org account after the September 2026 security incident?

Create a new API key, log in again since all sessions were ended, change your password (bcrypt hashes were exposed), and re-enable two-factor authentication since stored secrets were removed. If you use LuaJIT or Lua 5.1, upgrade to LuaRocks 3.12 or newer. If you installed the malicious packages bcrcewon, 7e0b94029db0, or 7e0b9402f9c8, treat that machine as compromised.

_daily.dev helps developers stay on top of incident response steps like these before a compromised credential causes real damage._

### Were any LuaRocks packages modified during the July-August 2026 server compromise?

No evidence was found that existing packages were tampered with or replaced. Every package file in storage was compared against a public git mirror from before the first attack and against the database, and every upload between July 9 and September 26 was checked against the uploading account's normal activity, finding no unauthorized changes beyond three attacker-created accounts.

_Following supply-chain incident postmortems on daily.dev helps developers judge how much to trust a package registry after a breach._

## Similar posts on daily.dev

- [Critical GitHub RCE bug exposed millions of repositories](https://daily.dev/posts/critical-github-rce-bug-exposed-millions-of-repositories-qqjftnlqc) · CSO Online · 0 upvotes · 0 comments
- [Security briefing: October 2026](https://daily.dev/posts/security-briefing-october-2026-uxnqjrxgv) · Sysdig Blog · 0 upvotes · 0 comments
- [Mass npm Supply Chain Attack: 20 Leo Platform Packages Compromised](https://daily.dev/posts/mass-npm-supply-chain-attack-20-leo-platform-packages-compromised-01l7qjya4) · StepSecurity · 3 upvotes · 2 comments

---

Tags: [#security](https://daily.dev/tags/security), [#lua](https://daily.dev/tags/lua)

[View this post on daily.dev](https://daily.dev/posts/luarocks-security-incident-september-2026-mpesiwvek)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"LuaRocks Security Incident September 2026","url":"https://daily.dev/posts/luarocks-security-incident-september-2026-mpesiwvek","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/luarocks-security-incident-september-2026-mpesiwvek"},"datePublished":"2026-09-27T20:25:27.492Z","dateModified":"2026-09-27T20:25:52.137Z","description":"A remote code execution vulnerability in LuaRocks.org, the Lua package repository, was exploited between July 9 and August 20, 2026 before being reported...","image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","thumbnailUrl":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/luarocks-security-incident-september-2026-mpesiwvek","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,lua","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"LuaRocks Security Incident September 2026"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/luarocks-security-incident-september-2026-mpesiwvek#faq","mainEntity":[{"@type":"Question","name":"What caused the LuaRocks.org remote code execution vulnerability?","acceptedAnswer":{"@type":"Answer","text":"The rockspec parser loaded uploaded files with loadstring without restricting it to text mode, so on LuaJIT or Lua 5.1 an uploaded file could contain precompiled bytecode instead of Lua source. LuaJIT does not verify bytecode, so a crafted file could read and write arbitrary memory, escaping the sandbox and running code inside the web server. The fix passes the text-only mode flag to loadstring and rejects any file starting with byte 27. Teams running Lua or LuaJIT services can track vulnerability writeups like this one on daily.dev to harden their own sandboxing."}},{"@type":"Question","name":"What should I do if I have a LuaRocks.org account after the September 2026 security incident?","acceptedAnswer":{"@type":"Answer","text":"Create a new API key, log in again since all sessions were ended, change your password (bcrypt hashes were exposed), and re-enable two-factor authentication since stored secrets were removed. If you use LuaJIT or Lua 5.1, upgrade to LuaRocks 3.12 or newer. If you installed the malicious packages bcrcewon, 7e0b94029db0, or 7e0b9402f9c8, treat that machine as compromised. daily.dev helps developers stay on top of incident response steps like these before a compromised credential causes real damage."}},{"@type":"Question","name":"Were any LuaRocks packages modified during the July-August 2026 server compromise?","acceptedAnswer":{"@type":"Answer","text":"No evidence was found that existing packages were tampered with or replaced. Every package file in storage was compared against a public git mirror from before the first attack and against the database, and every upload between July 9 and September 26 was checked against the uploading account's normal activity, finding no unauthorized changes beyond three attacker-created accounts. Following supply-chain incident postmortems on daily.dev helps developers judge how much to trust a package registry after a breach."}}]}
```

